<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<table>
    <tr>
        <td>
            时间:
            <input id="b_time2" class="easyui-datebox datebox-f combo-f" style="width: 90px; display: none;" name="btime" type="text">

        </td>
        <td> </td>
        <td>
            <a href="javascript:searchCustomer1()" class="easyui-linkbutton" iconCls="icon-search" plain="true">搜索</a>
        </td>
    </tr>
</table>


<table id="dg" title="客户列表" ></table>

<script>
    
    $('#dg').datagrid({
        url:'${pageContext.request.contextPath }/customer/customerList.action',
        pageList:[10,20,30],
        pageSize:10,
        rownumbers:true,
        singleSelect:false,collapsible:true,pagination:true,
        columns:[[    
            {field:'id',title:'编号',width:100},    
            {field:'customer_name',title:'客户名',width:100},  
            {field:'address',title:'客户地址',width:100,align:'right'},
            {field:'c_date',title:'日期',width:100}
        ]]
    }); 
    
    var toolbar = [];
    
	function searchCustomer1(){
		$("#dg").datagrid('load',{
			"btime":$("#b_time2").datebox("getValue")
		});
	}


    
</script>